package com.kch.system.domain;

import javax.validation.constraints.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.kch.common.core.domain.BaseEntity;

/**
 * 字典类型表 sys_tag
 * 
 * @author trianchao
 */
public class SysTag extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 标签名称 */
    private String tagName;

    /** 栏目编码 */
    private String cloumnCode;

    /** 备注 */
    private String remark;

    /**
     * 类型
     */
    private String type;

    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    @NotBlank(message = "标签名称不能为空")
    @Size(min = 0, max = 100, message = "标签名称长度不能超过100个字符")
    public String getTagName()
    {
        return tagName;
    }

    public void setTagName(String tagName)
    {
        this.tagName = tagName;
    }

    @NotBlank(message = "栏目编码不能为空")
    @Size(min = 0, max = 100, message = "栏目编码长度不能超过100个字符")
    public String getCloumnCode()
    {
        return cloumnCode;
    }

    public void setCloumnCode(String cloumnCode)
    {
        this.cloumnCode = cloumnCode;
    }

    public String getRemark()
    {
        return remark;
    }

    public void setRemark(String remark)
    {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tagName", getTagName())
            .append("cloumnCode", getCloumnCode())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
